import requestBase from '@/api/requestBase'

class ProgressBoard extends requestBase {
  constructor() {
    super({ prefix: 'buss', module: 'progressboard' })
  }

  startAccumulatingProgress() {
    return this.startGetRequest(this.getPrefix + '/startAccumulatingProgress', {})
  }

  annualPlan(params) {
    return this.startGetRequest(this.getPrefix + '/annualPlan', params)
  }

  investmentProgress(params) {
    return this.startGetRequest(this.getPrefix + '/investmentProgress', params)
  }

  singleStartAccumulatingProgress(params) {
    return this.startGetRequest(this.getPrefix + '/singleStartAccumulatingProgress', params)
  }

  singleAnnualPlan(params) {
    return this.startGetRequest(this.getPrefix + '/singleAnnualPlan', params)
  }

  singleInvestmentProgress(params) {
    return this.startGetRequest(this.getPrefix + '/singleInvestmentProgress', params)
  }

  singleBudgetExecution(params) {
    return this.startGetRequest(this.getPrefix + '/singleBudgetExecution', params)
  }

  singleconstructionInvestmentProgress(params) {
    return this.startGetRequest(this.getPrefix + '/singleconstructionInvestmentProgress', params)
  }

  // 形象进度上半
  singleImageProgress(params) {
    return this.startGetRequest(this.getPrefix + '/singleImageProgress', params)
  }

  // 形象进度下半
  getImageBeak(params) {
    return this.startPostRequest(this.prefix + '/engineeringstatistics/getImageBeak', params)
  }

  singleImageBeakProjectId(params) {
    return this.startGetRequest(this.getPrefix + '/singleImageBeakProjectId', params)
  }

  singleImageProgressHistogram(params) {
    return this.startGetRequest(this.getPrefix + '/singleImageProgressHistogram', params)
  }

  singleKeyEngineering(params) {
    return this.startGetRequest(this.getPrefix + '/singleKeyEngineering', params)
  }
}

export default new ProgressBoard()
